<tree>
## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  ## set title
  #set ($title = $displayer.getMessage($menu.title))
  #set ($node = $menu.name)
  #if ($level != 0)
	 <tree text="$title" #if($menu.target)target="$menu.target"#end #if($menu.action)src="$menu.action" action="$!menu.image" #else #if($menu.Location)action="$menu.Location" #end #end />
  #end
#end

#displayMenu($menu 0)
</tree>